package com.ihunanren.biz.function.domain;

import java.util.List;

import com.ihunanren.common.CollectionUtils;

/**
 * @author kalman03
 */
public class WeixinRespProxy extends WeixinResp{

	private final List<WeixinResp> weixinRespList;

	public WeixinRespProxy(List<WeixinResp> weixinRespList) {
		this.weixinRespList = weixinRespList;
	}

	@Override
	public String toReply() {
		if(CollectionUtils.isNotEmpty(weixinRespList)){
			StringBuilder sb = new StringBuilder();
			for(WeixinResp resp : weixinRespList){
				sb.append(resp.toReply()).append("\n\n");
			}
			return sb.append("回复m查看智能服务命令").toString().trim();
		}
		return null;
	}
}
